package net.zjitc.service.impl;

import net.zjitc.dao.UserDao;
import net.zjitc.dao.impl.UserDaoImpl;
import net.zjitc.domain.User;
import net.zjitc.service.UserService;

import java.util.List;

//测试：使用单元测试--》alt+回车 选择create test （junit4）
public class UserSerivceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public List<User> findALL() {
        return userDao.findALL();
    }

    @Override
    public User findByUsernameAndPassword(String username, String password) {
        return userDao.findByUsernameAndPassword(username,password);
    }

    @Override
    public int add(User user) {
        return 0;
    }

    @Override
    public int update(User user) {
        return 0;
    }

    @Override
    public int delete(int id) {
        return 0;
    }
}
